/*	
 *	This file is part of eduDES.
 *
 *	Copyright 2009 Michael Morckos <mikey.morckos@gmail.com>
 *
 *	eduDES is free software: you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation, either version 3 of the License, or
 *	(at your option) any later version.
 *
 *	eduDES is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *
 *	You should have received a copy of the GNU General Public License
 *	along with eduDES.  If not, see <http://www.gnu.org/licenses/>.
 */
 
#ifndef _round_h_
#define _round_h_

#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdio.h>
#include "key.h"

unsigned char *orig_phrase,
			  *curr_phrase,
			  *expa_phrase,
			  *L_phrase,
			  *R_phrase,
			  *final_phrase,
			  *R_phrase_tmp,
			  *R_phrase_tmp2;						

void init_phrase(unsigned char*);
void applyIP_1();
void applyIP_2();
void applyFUNC();
void splitphrase();
void closeround();
short _todecimal(unsigned char[], short);
unsigned char _tobinary(unsigned char*);

#endif
                                                                       
